package com.sc.nft.entity.dto;

import com.sc.nft.enums.PrizeDrawActivityTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;
@Data
public class UserBettingDTO {

    @ApiModelProperty("活动id")
    @NotNull(message = "活动id不能为空")
    private Long id;

    @ApiModelProperty("下注数据")
    private List<@Valid BettingDTO> betting;

    @ApiModelProperty(value = "类型 1:竞猜活动 2:瓜分活动")
    @NotNull(message = "活动类型不能为空")
    private PrizeDrawActivityTypeEnum activityType;

}
